import request from '@/utils/request'

//集团管理分页查询
export function getList(currentPage, count) {
  return request({
    url: `/customer/group/page/${currentPage}/${count}`,
    method: 'post',
  })
}
//集团管理新增
export function groupAdd(data) {
  console.log(data)
  return request({
    url: '/customer/group/add',
    method: 'post',
    data
  })
}
//集团管理删除
export function customerDel(categoryId) {
  return request({
    url: `/customer/group/del/${categoryId}`,
    method: 'post',
    data: categoryId
  })
}
//集团管理编辑
export function customerEdit(data) {
  return request({
    url: '/customer/group/edit',
    method: 'post',
    data
  })
}
//选择管理员
export function select() {
  return request({
    url: '/systemUser/findCusstomerUser',
    method: 'get',
  })
}
//选择管理员2
export function selectAdminConservator() {
  return request({
    url: '/systemUser/findGroupManagement',
    method: 'get',
  })
}

//选择管理员2
export function selectAdminConservatorById(id) {
  return request({
    url: `/systemUser/findGroupManagement/${id}`,
    method: 'get',
  })
}

//选择财务
export function selectFinanceConservator() {
  return request({
    url: '/systemUser/findPurchaserFinanceUser',
    method: 'get',
  })
}

  //选择财务
export function selectFinanceConservatorById(id) {
  return request({
    url: `/systemUser/findPurchaserFinanceUser/${id}`,
    method: 'get',
  })
}
